package org.ecbox.sdk.request;

import org.ecbox.sdk.ApiRuleException;
import org.ecbox.sdk.EopHashMap;
import org.ecbox.sdk.EopRequest;
import org.ecbox.sdk.response.CategoriesGetResponse;

/**
 * 分类获取
 * 
 * File: CategoriesGetRequest.java<br/>
 * Description: <br/>
 * 
 * Copyright: Copyright (c) 2014 ecbox.com<br/>
 * Company: ECBOX,Inc.<br/>
 * 
 * @author chenxiaochun
 * @date 2014年12月28日
 * @version 1.0
 */
public class CategoriesGetRequest extends EopRequest<CategoriesGetResponse> {

  private Long companyId;
  private Long categoryId;

  @Override
  public String getApiMethodName() {
    return "ecbox.categories.get";
  }

  @Override
  public EopHashMap getTextParams() {
    EopHashMap params = new EopHashMap();
    params.put("companyId", companyId);
    params.put("categoryId", categoryId);
    return params;
  }

  @Override
  public Class<CategoriesGetResponse> getResponseClass() {
    return CategoriesGetResponse.class;
  }

  @Override
  public void check() throws ApiRuleException {
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

}
